home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip Kasım 2003.iso / prog / openoff / f_0316 / scalc.jar / text / scalc / 01 / 12120300.xml < prev   
Encoding:
Extensible Markup Language  |  2002-01-24  |  4.6 KB  |  44 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Error Message</title><meta name="filename" content="text/scalc/01/12120300"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         span.T1{
  9.                 font-weight:bold;}
  10.         </style></head><body>
  11.    
  12.    
  13.    <help:to-be-embedded Eid="fehlermeldung" xmlns:help="http://openoffice.org/2000/help">
  14.    <p class="Head1"><help:help-id value="SC_TABPAGE_TP_VALIDATION_ERROR"/><help:key-word value="data validity check; error message" tag="kw66805_1"/><help:link Id="66805">Error Message</help:link></p>
  15.    <p class="Paragraph"><help:help-text value="visible">Define an error message to be displayed when invalid values are entered.</help:help-text></p>
  16.    </help:to-be-embedded>
  17.    <p class="Paragraph">Moreover it is possible to start a macro with an error message.</p>
  18.    <help:popup Id="66772" Eid="datengueltigfehler" xmlns:help="http://openoffice.org/2000/help"><help:embedded Id="66778" Eid="wie"/></help:popup>
  19.    <p class="Head2"><help:help-id value="SC_TRISTATEBOX_TP_VALIDATION_ERROR_TSB_SHOW" xmlns:help="http://openoffice.org/2000/help"/>Show error message when invalid values are entered.</p>
  20.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Check this box if you want an error message to be displayed when invalid values are entered.</help:help-text> Otherwise, a text will be displayed referring to the invalid entry.</p>
  21.    <p class="Paragraph">In both cases, when you select "Stop" the invalid entry is canceled and the previous value is retained in the cell. The same applies to the "Warning" and "Information" actions when you end the warning or information dialog with <span class="T1">Cancel</span>. If you close the dialog with <span class="T1">OK</span> rather than <span class="T1">Cancel</span>, the invalid value remains.</p>
  22.    <p class="Head2">Contents</p>
  23.    <p class="Paragraph">Here you can define the error text or error action.</p>
  24.    <p class="Head3"><help:help-id value="SC_LISTBOX_TP_VALIDATION_ERROR_LB_ACTION" xmlns:help="http://openoffice.org/2000/help"/>Action</p>
  25.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Choose either the type of dialog to display or a predefined macro to be run in the case of an error.</help:help-text> (see the example macro at the end of the file) The "Stop" action displays a dialog, which you have to close with <span class="T1">OK</span>. The invalid entry is rejected. The "Warning" and "Information" actions display a dialog that can be closed with <span class="T1">OK</span> or <span class="T1">Cancel</span>. The invalid entry is rejected when you click <span class="T1">Cancel</span>, not, however, when you click <span class="T1">OK</span>.</p>
  26.    <p class="Head3"><help:help-id value="SC_PUSHBUTTON_TP_VALIDATION_ERROR_BTN_SEARCH" xmlns:help="http://openoffice.org/2000/help"/>Browse...</p>
  27.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Click here to open the <help:link Id="65639">Macro</help:link> dialog that allows you to choose the macro to be executed after an error message.</help:help-text></p>
  28.    <p class="Head3"><help:help-id value="SC_EDIT_TP_VALIDATION_ERROR_EDT_TITLE" xmlns:help="http://openoffice.org/2000/help"/>Title</p>
  29.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Enter the name of the macro to be executed or the title of the dialog you want to display.</help:help-text></p>
  30.    <p class="Head3"><help:help-id value="SC_MULTILINEEDIT_TP_VALIDATION_ERROR_EDT_ERROR" xmlns:help="http://openoffice.org/2000/help"/>Error message</p>
  31.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Enter the text to display in case of an error.</help:help-text></p>
  32.    <help:to-be-embedded Eid="examplemakro" xmlns:help="http://openoffice.org/2000/help">
  33.    <p style="">Sample macro:</p>
  34.    <p class="PropText">Function ExampleValidity(CellValue as String, TableCell as String)</p>
  35.    <p class="PropText">Dim msg as string</p>
  36.    <p class="PropText"/>
  37.    <p class="PropText">msg = "Invalid value: " & "'" & CellValue & "'"</p>
  38.    <p class="PropText">msg = msg & " in table: " & "'" & TableCell & "'"</p>
  39.    <p class="PropText"/>
  40.    <p class="PropText">MsgBox msg ,16,"Error message"</p>
  41.    <p class="PropText"/>
  42.    <p class="PropText">End Function</p>
  43.    </help:to-be-embedded>
  44.   </body></html>